let footer = function (page) {
    let tabel = document.querySelector('.footer')

    tabel.innerHTML = `
    <a href="./home.html" class="${page == 'home' ? 'active' : ''}">
    <div class="home">
        <p class="iconfont icon-shouye"></p>
        <span>首页</span>
    </div>
    </a>
    <a href="./running.html" class="${page == 'running' ? 'active' : ''}">
    <div class="sport2">
        <p class="iconfont icon-yundongzuqiu"></p>
        <span>运动</span>
    </div>
    </a>
    <a href="./myen.html" class="${page == 'myen' ? 'active' : ''}">
    <div class="mine">
        <p class="iconfont icon-wode"></p>
        <span>我的</span>
    </div>
    </a>
    
    `
}

module.exports = {
    footer: footer
}